import React, { Component } from 'react'
import Img from '../components/Img'
import { withRouter } from 'react-router-dom'
import '../assets/style/Yheader.less'
 class Yheader extends Component {
    render() {
        
        return (
            <div>
                <div className="Ytop">
                       <Img src='release/6.png' onClick={() =>{ 
                           console.log(222);
                           this.props.history.go(-1)
                           }}></Img>
                     <div className="title">{this.props.title}</div>
                 </div>
            </div>
        )
    }
}
export default withRouter(Yheader)